<div>
    <div class="modal-header">
        <button class="close" data-dismiss="modal" ng-click="cancel()" title="Đóng">×</button>
        <h4 class="modal-title">Thêm file video</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div>
                <div class="row">
                    <div class="col-xs-12">
                        {{ form('class': 'forms-horizontal' , 'id' : 'formSearchSelectAddVideoFileToObject') }}
                        <div class="form-group col-md-12 well">
                            <div class="col-md-11">
                                <div class="form-group">
                                    <div class="col-md-3 padding-left-none">
                                        {{ text_field('id' , 'class' :'forms-control col-xs-12' , ['placeholder' : 'Tên file video']) }}
                                    </div>
                                    <div class="col-md-3">
                                        {{ formSearchVideoFile.render('name' , ['placeholder' : 'Tên file video']) }}
                                    </div>
                                    <div class="col-md-3">
                                        {{ formSearchVideoFile.render('quanlity') }}
                                    </div>
                                    <div class="col-md-3">
                                        {{ formSearchVideoFile.render('source_server') }}
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-1">
                                <button type="submit" class="btn btn-xs btn-default btnSearchFileVideo" ng-click="searchVideoFile()">Tìm</button>
                            </div>
                        </div>
                        {{ end_form() }}
                    </div>
                </div>
                {{ form(config.application.backendUrl ~ '/ajax/videoFile/addVideoFilesToObject?object_type=' ~ objectType ~ '&object_id=' ~ objectId ,'class': 'forms-horizontal' , 'id' : 'formSelectVideoFile') }}
                <div id="listSelectVideoFilesToObject">
                    {% include 'ajax-video-file/result_search_video_file.volt'  %}
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
        <button type="button" data-loading-text="<i class='ace-icon fa fa-spinner fa-spin white bigger-125'></i>Đang tải..." class="btn btn-primary btnAddVideoFileToObject">Thêm</button>
    </div>
</div>
